public class RBT implements WordSet {

	private RedBlackTree tree;
	
	public RBT(){
		tree = new RedBlackTree(new Word());
	}
	
	public Word get(Word word)
	{
		Word temp;
		temp = (Word) tree.find(word);
		return temp;
	}
	
	public void add(Word wordObject)
	{
		tree.insert(wordObject);
	}

}